package com.xidian.zhiancloud.service.chemicalsManagement.chemicalManager.dangerousPart;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.DangerousChemicalReviewMapper;
import com.xidian.zhiancloud.model.DangerousChemicalReviewRecord;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Egoist
 * @Date: 2020/11/10 17:00
 */

@Service
public class DangerousChemicalReviewService extends ServiceImpl<DangerousChemicalReviewMapper, DangerousChemicalReviewRecord>  implements IService<DangerousChemicalReviewRecord> {

    public List<DangerousChemicalReviewRecord> getReviewRecordById(Long id) {
        LambdaQueryWrapper<DangerousChemicalReviewRecord> queryWrapper = new LambdaQueryWrapper<DangerousChemicalReviewRecord>();
        queryWrapper.eq(DangerousChemicalReviewRecord::getOutId, id);
        return list(queryWrapper);
    }

}
